#include <stdio.h>
#include "wrapper.h"
#include "pubfunc.h"

int main(int argc, char **argv)
{
	Wrapper *wrapper = Wrapper::instance();
	
	info<<"begin load data, please wait..."<<endl;
	
	if (wrapper->open(argc, argv) != 0){
		error<<"wrapper->open error"<<endl;
		Wrapper::cleanup();
		return -1;
	}
	if (wrapper->loadData() != 0){
		error<<"wrapper->loadData error"<<endl;
		Wrapper::cleanup();
		return -1;
	}
	info<<"load data successfully"<<endl;
	Wrapper::cleanup();
	return 0;
}
